<template>
    <Poptip
    @on-ok="ok"
    @on-cancel="cancel"
    :confirm="confirm"
    :title="title"
    >
    <slot></slot>
    </Poptip>
</template>
<script>
export default {
    name: 'pop',
    props: {
        confirm: {
            type: Boolean
        },
        title: {
            type: String
        }
    },
    methods: {
        ok () {
            this.$emit('oks')
        },
        cancel () {
            this.$emit('cancel')
        }
    }
}
</script>